package com.lh.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lh.api.form.LoginForm;
import com.lh.api.vo.UserAddrVo;
import com.lh.common.entity.admin.User;

/**
 * 用户
 *
 * @author Mark sunlightcs@gmail.com
 */
public interface UserService extends IService<User> {

	User queryByMobile(String mobile);

	/**
	 * 用户登录
	 * @param form    登录表单
	 * @return        返回用户ID
	 */
	User login(LoginForm form);

    int updateByKey(User user);

	UserAddrVo getDefaultAddress(Long uid);

	void invalidRobot(String phone);
}
